package Test2;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class LogDemo {
	
	public static void main(String[] args) {
		
	}
	public static void appendMethodB(String fileName, String content) {
		try {
			File filename = new File(fileName);
//			if (!filename.exists())
//				filename.createNewFile();
			FileWriter writer = new FileWriter(fileName, true);
			writer.write("\r\n" + content);// 添加一个换行
			writer.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
